package com.zmht.beike.biz;

import java.util.List;

import com.zmht.beike.core.BaseBiz;
import com.zmht.beike.vo.TargetConect;

public interface TargetManageBiz extends BaseBiz {
	/**
	 * 查找所有(集体,个别)目标
	 * @return
	 */
	public List findAllTarget(TargetConect content,int startIndex,int pageSize);
	/**
	 * 集体目标条数
	 * @param content
	 * @return
	 */
	public int findAllTargetTotal(TargetConect content);
	
	
	/**
	 * 获得我的教学目标
	 * @param content
	 * @return
	 */
	public List getMyTarget(TargetConect content,int startIndex,int pageSize);
	/**
	 * 获得我的教学目标总记录数
	 * @param content
	 * @return
	 */
	public int getMyTargetTotal(TargetConect content);
	/**
	 * 获得我的收藏的目标
	 * @param content
	 * @return
	 */
	public List getMyFavorTarget(TargetConect content,int startIndex,int pageSize);
	/**
	 * 获得我收藏的目标的个数
	 * @param content
	 * @return
	 */
	public int getMyFavorTargetTotal(TargetConect content);
	
	/**
	 * 复制集体目标
	 * @param targetId
	 * @return
	 */
	public Integer saveNewCTarget(Integer targetId,Integer teacherId);
	/**
	 * 复制个别目标
	 * @param targetId
	 * @return
	 */
	public Integer saveNewITarget(Integer targetId,Integer teacherId);
	/**
	 * 执行hql
	 * @param hql
	 * @return
	 */
	public boolean deleteByHQL(String hql);
	
	public List findByHQL(String hql);
	public List findBySQL(String sql);
	
	
}
